package com.csdj.t309springboot.service;

import com.csdj.t309springboot.entity.Carousel;
import com.csdj.t309springboot.mapper.CarouselMapper;
import com.csdj.t309springboot.service.ICarouselService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 谭湛宇
 * @since 2022-01-10
 */
@Service
public class CarouselService extends ServiceImpl<CarouselMapper, Carousel> implements ICarouselService {
    @Resource
    private CarouselMapper carouselMapper;

    public List<Carousel> getAllCarousel(){
        return carouselMapper.selectList(null);
    }
}
